// src/router/index.js

import Vue from 'vue';
import Router from 'vue-router';
import ShangDian from '@/components/ShangDian.vue';
import HuiYuan from '@/components/HuiYuan.vue';
import ShangPin from '@/components/ShangPin.vue';
import ShiPin from '@/components/ShiPin.vue';
import DingDan from '@/components/DingDan.vue';
import UserLogin from '@/components/UserLogin.vue'; // 引用新的 UserLogin 组件
import ShuJu from '@/components/ShuJu.vue';

Vue.use(Router);

export default new Router({
  routes: [
    {
        path: '/',
        name: 'UserLogin',
        component: UserLogin // 使用新的组件名
      },
    {
      path: '/shop',
      name: 'ShangDian',
      component: ShangDian
    },
    {
      path: '/video',
      name: 'ShiPin',
      component: ShiPin
    },
    {
      path: '/goods',
      name: 'ShangPin',
      component: ShangPin
    },
    {
      path: '/user',
      name: 'HuiYuan',
      component: HuiYuan
    },
    {
      path: '/order',
      name: 'DingDan',
      component: DingDan
    },
    {
      path: '/data',
      name: 'ShuJu',
      component: ShuJu
    }
   
  ]
});
